package org.alan7yg.aop_sample;

/**
 * Created by alan on 8/24/16.
 */
public enum RespCode {

    // 通用错误码
    SUCCESS(0, "处理成功!"),
    SYSTEM_ERR(-1, "系统异常!"),

    // 示例业务错误码
    SAMPLE_ERR(10, "示例业务错误码");

    /**
     * 返回码
     */
    public final int code;

    /**
     * 返回码说明
     */
    public final String message;

    RespCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
